package com.nbot.server.job;


import com.nbot.server.service.PointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;

import java.util.Date;

//@Component

/**
 * just for test
 */
@Deprecated
public class ScheduledJob {

    @Autowired
    private PointService pointService;


    @Scheduled(fixedRate = 5000)//每5秒执行一次
    public void play() throws Exception {
        //nbotProperties.g
        System.out.println("执行Quartz定时器任务：" + new Date());
        System.out.println(pointService.getTagFormDesc("1站27108H2套压"));
    }


}
